/**
 * @Auto generation code
 * 用户登陆类
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, body, loading
 * customerLoginOld - POST
 */
export const customerLoginOld = async (loading) => {
	return await request.post('/customer/login', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 普通用户登出 - GET
 */
export const customLogout = async (loading) => {
	return await request.get('/customer/logout', {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * unionCustomerLogin - POST
 */
export const unionCustomerLogin = async (loading) => {
	return await request.post('/customer/mlogin', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 用户快速登录，用短信验证码登陆 - POST
 */
export const customerLogin = async (loading) => {
	return await request.post('/customer/quick-login', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 第三方登录 - GET
 */
export const thirdLogin = async ({// query params
		params   // params ,必填 
	
}, loading) => {
	return await request.get('/customer/redirect-login', {
		 params, 
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 服务者登陆接口 - POST
 */
export const serviceLogin = async (loading) => {
	return await request.post('/service/login', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 服务者登出 - GET
 */
export const serviceLogout = async (loading) => {
	return await request.get('/service/logout', {
		
	}, loading)
}

